import request from './request.js';

export function addTopic(data) {
  return request.post('/question', data)
}

export function findByPage(page = 1, limit = 10) {
  return request.get('/question/findByPage', {
    params: {
      page,
      limit
    }
  })
}

export function delTopic(id) {
  return request.delete(`/question/${id}`,)
}